<?php

    $objcfg = new config();
	require_once $_SERVER["DOCUMENT_ROOT"]."/".$objcfg->objEnd."/Class/geral.php";
	
    $geral = new Geral();
    require_once ($geral->conexao());

    $db = new conexao();

    require_once ($geral->documento());

    $objDoc = new Documento();
    
    require_once ($geral->evtAjax());
    $ajax->printJavascript("/".$objcfg->objEnd."/FreamWork/xajax/");

?>
<style type="text/css">
			<!--
								
				@import url(../../../css/lista/forms_lista.css); 
				@import url(../../css/barra_de_rolagem/barra_de_rolagem.css);
		
				
				
			-->
			
	</style>
<div id="titulo_forns"> <div id="titulo_fonte">CONSULTAR DOCUMENTOS</div></div>
<fieldset>
<legend>BUSCAR</legend>

<table align='center' border='0' width='100%'>
	<tr>
		<td>
			<input type="text" name="texto" size="50" id="texto" value="" onkeyup="xajax_pesquisarDoc(document.getElementById('texto').value,document.getElementById('field').value)">

			Buscar por:
			<select name="field" id="field">

				<option value='0'>Documento</option>
				<option value='1'>Recipiente</option>
				<option value='2'>Usuario</option>
				<option value='3'>Tipo de Documento</option>
				<option value='4'>Data do Cadastro</option>
												
			</select>
		</td>
	</tr>
</table>
</fieldset>
<fieldset> 
<legend>LISTAR DOCUMENTOS</legend>
<div id="scroll_consultar_documento">
<table>
<div id="resultado">
	<script type="text/javascript">

		xajax_pesquisarDoc("%","0");

	</script>
</div>
</table>
</div>
</fieldset> 